﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
namespace BUS
{
    public class MonAnBUS
    {
        public MonAnDTO LayThongTinMonAn(string MaMA)
        {
            MonAnDAO dao = new MonAnDAO();
            return dao.LayThongTinMonAn(MaMA);
        }
        public List<MonAnDTO> DanhSachMonAn(string MaLMA)
        {
             MonAnDAO dao = new MonAnDAO();
             return dao.DanhSachMonAn(MaLMA);
        }
        public int UpdateSLMA(string mama, int soluong)
        {
             MonAnDAO dao = new MonAnDAO();
             return dao.UpdateSLMA(mama,soluong);
        }
        public int LaySLMA(string mama)
        {
             MonAnDAO dao = new MonAnDAO();
             return dao.LaySLMA(mama);
        }

        public int UpdateSLMAsaukhiHuy(String Madh)
        {
            MonAnDAO dao = new MonAnDAO();
            return dao.UpdateSLMAsaukhiHuy(Madh);
        }
    }
}
